package constructor.flyweight;

public class ClientFlyWeigth {
    public static void main(String[] args) {
        WebSiteFactory webSiteFactory = new WebSiteFactory();
        ConcurrentWebSite news = webSiteFactory.getConcurrentWebSite("新闻");
        news.use(new User("zjr"));

        ConcurrentWebSite blog = webSiteFactory.getConcurrentWebSite("博客");
        blog.use(new User("cxl"));
        blog.use(new User("zjr"));
    }
}
